<?php

$count=getObjByKey("shop_gallery","count(*)","articleId",$currentObject->articleid);

if ($count==0) {
?>

<script type="text/javascript">


      /*  var $radios = $('input:radio[name=x_zdefault]');

            $radios.filter('[value=Y]').attr('checked', true);

*/
$("#ButterflyPortal_data_DEFAULT").val("Y");

</script>

<?php } ?>
